package com.yang.api.config;

import com.yang.common.constant.RabbitMQConstants;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author yangyongsheng
 * @date 2024/7/5 21:05
 * @description 构建队列&交换机信息x
 */
@Configuration
public class RabbitMQConfig {

    @Bean
    public Queue preSendQueue(){
        return QueueBuilder.durable(RabbitMQConstants.SMS_PRE_SEND).build();
    }
}
